package cn.ecut.dao;

import cn.ecut.model.Guanliyuan;
import cn.ecut.model.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GuanliyuanDao {
    String selectPasswordByname(String name);
    int updatePasswordByname(Guanliyuan guanliyuan);
    int addGuanliyuan(Guanliyuan guanliyuan);
    int slectCountByphone(String phone);
    int selectCountBynumber(String number);
    int addStudent(Student student);
    int selectStudentAllcount();
    List<Student> selectAllStudent();
    List<Student> selectStudentByPage(@Param("offset")int offset,@Param("num")int num);
    int updataStudent(Student student);
    int deleteStudentBynumber(String number);
    List<Student> advanceSelect(@Param("s") String s,@Param("offset")int offset,@Param("num")int num);
    int advanceSelectCount(String s);
}
